function Loss   = v8_LossFunction(ParametersIn, RealMoments, MomentCovar)

SimMoments  = v8_Moments(ParametersIn);

Loss        = (RealMoments - SimMoments)' * inv(MomentCovar) * (RealMoments - SimMoments);

return
